#pragma once

namespace CODEHELPER
{

    class CHttpHelper
    {
    public:
        CHttpHelper( void );
        virtual ~CHttpHelper( void );

        static BOOL ParseURL( LPCTSTR pwszURL, LPTSTR pwszHostName, LPTSTR pwszPath, WORD& wPort );

        static BOOL EncodeURL( LPCTSTR pwszURL, int iLen, LPTSTR pwszRetURL, int& iRetLen ) ;

        static HRESULT OpenUrlWithDefaultBrowser( LPCTSTR lpUrl );

        static BOOL IsHasNetConnect();

        static BOOL OpenUrlWithIE( LPCTSTR lpszURL );
    };


}

